package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.BindTeachplanMediaDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.dto.TeachplanDto;
import com.xuecheng.commons.model.dto.TeachplanWorkDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.TeachplanVo;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-09-17
 */
public interface TeachplanService extends IService<Teachplan> {

    //根据课程id，查询课程的章节目录
    ResponseResult<TeachplanVo> treeNodes(Long courseId);

    //保存或者更新课程计划
    ResponseResult saveOrUpdatePlan(TeachplanDto dto);

    //课程计划绑定媒资
    ResponseResult association(BindTeachplanMediaDto dto);
    //教学计划-作业绑定
    ResponseResult teachplanWorkAssociation(TeachplanWorkDto dto);
    //教学计划-作业解绑
   // ResponseResult<Boolean> jiebang(Long teachplanWorkId, PageRequest request);
}
